package com.hwadee.ems.domain.po;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

/**
 * <p>
 * 系部试卷提交申请
 * </p>
 *
 * @author EnosElinsa
 * @since 2024/06/21
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("paper_application")
public class PaperApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 系部试卷提交申请编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 课程编号 references course(id) for (name)
     */
    private Long courseId;

    /**
     * 申请人编号 references user(id) for (name)
     */
    private Long applicantId;

    /**
     * 审批编号 references approval(id) for (status, opinion, approval_date)
     */
    private Long approvalId;

    /**
     * 申请日期
     */
    private LocalDate applicationDate;

    /**
     * 试卷内容
     */
    private String paperContent;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    /**
     * 逻辑删除标识
     */
    @TableLogic
    private Boolean isDeleted;

}
